home *** CD-ROM | disk | FTP | other *** search
- on checkit
- global WhichBug, bugnumber, changer, type, exitFrame, returnframe, singit, isaid, game3level, TRIAL
- set isaid to 1
- set returnframe to the frame
- set singit to 0
- set golem to getAt(bugnumber, WhichBug)
- if changer = golem then
- set TRIAL to 0
- if the soundLevel then
- puppetSound("cor" & random(3))
- repeat while not (the soundBusy of 1)
- updateStage()
- end repeat
- repeat while the soundBusy of 1
- updateStage()
- end repeat
- end if
- clearcounter()
- set TRIAL to 0
- updateStage()
- set WhichBug to WhichBug + 1
- if game3level = 1 then
- if WhichBug > 2 then
- prepreward()
- go("reward" & random(5))
- exit
- end if
- end if
- if game3level = 2 then
- if WhichBug > 4 then
- prepreward()
- go("reward" & random(5))
- exit
- end if
- end if
- if game3level = 3 then
- if WhichBug > 6 then
- prepreward()
- go("reward" & random(5))
- exit
- end if
- end if
- set changer to EMPTY
- else
- dohint()
- set the castNum of sprite (42 + WhichBug) to getAt(digitalis, 14)
- end if
- go("levela" & game3level)
- end
-
- on flashanswer
- global WhichBug, digitalis, bugnumber
- set digits to 42 + WhichBug
- set golem to string(getAt(bugnumber, WhichBug))
- set stp1 to the castNum of sprite digits
- repeat with xxx = 1 to 4
- set the castNum of sprite digits to getAt(digitalis, value(golem) + 29)
- updateStage()
- startTimer()
- repeat while the timer < 20
- updateStage()
- end repeat
- set the castNum of sprite digits to getAt(digitalis, 12)
- updateStage()
- startTimer()
- repeat while the timer < 20
- updateStage()
- end repeat
- end repeat
- set the castNum of sprite digits to getAt(digitalis, 12)
- updateStage()
- end
-
- on stopMovie
- repeat with xxx = 1 to 48
- set the visible of sprite xxx to 1
- end repeat
- end
-
- on bugmenu
- global buglist, digitalis, game3level
- set bugfirst to the number of cast "bug1" - 1
- repeat with xxx = 1 to count(buglist) - 3
- puppetSprite(36 + xxx, 1)
- puppetSprite(42 + xxx, 1)
- set the castNum of sprite (36 + xxx) to bugfirst + getAt(buglist, xxx)
- set the castNum of sprite (42 + xxx) to getAt(digitalis, 13)
- end repeat
- updateStage()
- end
-